package dockyin.action.pattern.strategy;


public class AbstractCalculator {

    public int[] split(String exp, String operator) {
        String[] params = exp.split(operator);

        int[] result = new int[params.length];
        for (int i = 0; i < params.length; i++) {
            result[i] = Integer.parseInt(params[i]);
        }

        return result;
    }
}
